<form id="add-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('选择科目')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-subject_id" data-rule="required"  class="form-control selectpicker" name="row[subject_id]">
                <option value="">请选择科目</option>
                {foreach name="subjectList" item="vo"}
                <option value="{$vo['id']}">{$vo['subject_name']}</option>
                {/foreach}
            </select>
        </div>
    </div>
    <input type="hidden" name="row[subject_name]" value="" id="c-subject_name">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('考试类型')}:</label>
        <div class="col-xs-12 col-sm-8">
            <select  id="c-type" data-rule="required" class="form-control selectpicker" name="row[type]" readonly="">
                <option value="2" >模拟考试</option>
                <!--<option value="1" >正式考试</option>
                <option value="3" >付费试卷</option>-->
            </select>
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('考试名称')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-exam_name" data-rule="required" class="form-control" name="row[exam_name]" type="text">
        </div>
    </div>

    <div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">{:__("试卷总分")}</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" placeholder="请输入试卷总分" name="row[score]">
        </div>
    </div>

    <div class="form-group">
        <label for="" class="control-label col-sm-2 col-xs-12">{:__('来源')}</label>
        <div class="col-xs-12 col-sm-8">
            <input type="text" class="form-control" placeholder="来源" name="row[source]">
        </div>
    </div>

    <div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">{:__('及格线')}</label>
        <div class="col-xs-12 col-sm-8">
            <input type="number" class="form-control" placeholder="请输入及格线" name="row[pass]">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('时长（分钟）')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-givetime" data-rule="required" class="form-control" name="row[givetime]" type="number" value="0">
        </div>
    </div>

    <div class="form-group" >
        <label for="type" class="control-label col-xs-12 col-sm-2">{:__('组卷方式')}</label>
        <div class="col-xs-12 col-sm-8" style="display: none;">
            <select name="row[paper_type]" id="type" class="form-control selectpicker">
                <option value="1">随机组卷</option>
                <option value="2">手工组卷</option>
            </select>
        </div>
    </div>

    <div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">{:__('题型')}</label>
        <div class="col-xs-12 col-sm-8">
            <div class="btn-group" id="question_type">
                <!--<button class="btn btn-primary">题干题</button>
                <button class="btn btn-primary">题干题</button>-->
            </div>
        </div>
    </div>

    <div id="question-list"></div>

    <!--<div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">{:__('单选题')}</label>
        <div class="col-xs-12 col-sm-8 form-inline">
            <span class="info">共&nbsp;</span>
            <input id="iselectallnumber_DXT" type="text" class="form-control" needle="needle" name="args[papersetting][questype][DXT][number]" value="50" size="1" msg="您必须填写总题数" autocomplete="off">
            <span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[papersetting][questype][DXT][score]" value="1" size="1" msg="您必须填写每题的分值" autocomplete="off">
            <span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[papersetting][questype][DXT][describe]" value="" size="10" autocomplete="off">
            <span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[papersetting][questype][DXT][easynumber]" value="20" size="1" msg="您需要填写简单题的数量，最小为0" autocomplete="off">
            <span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[papersetting][questype][DXT][middlenumber]" value="20" size="1" msg="您需要填写中等难度题的数量，最小为0" autocomplete="off">
            <span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[papersetting][questype][DXT][hardnumber]" value="10" size="1" datatype="number" msg="您需要填写难题的数量，最小为0" autocomplete="off">
        </div>
    </div>
    <div class="form-group">
        <label for="" class="control-label col-xs-12 col-sm-2">{:__('单选题')}</label>
        <div class="col-xs-12 col-sm-8 form-inline">
            <span class="info">共&nbsp;</span>
            <input id="iselectallnumber_DXT" type="text" class="form-control" needle="needle" name="args[papersetting][questype][DXT][number]" value="50" size="1" msg="您必须填写总题数" autocomplete="off">
            <span class="info">&nbsp;题，每题&nbsp;</span><input class="form-control" needle="needle" type="text" name="args[papersetting][questype][DXT][score]" value="1" size="1" msg="您必须填写每题的分值" autocomplete="off">
            <span class="info">&nbsp;分，描述&nbsp;</span><input class="form-control" type="text" name="args[papersetting][questype][DXT][describe]" value="" size="10" autocomplete="off">
            <span class="info">&nbsp;易&nbsp;</span><input class="form-control" type="text" name="args[papersetting][questype][DXT][easynumber]" value="20" size="1" msg="您需要填写简单题的数量，最小为0" autocomplete="off">
            <span class="info">&nbsp;中&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[papersetting][questype][DXT][middlenumber]" value="20" size="1" msg="您需要填写中等难度题的数量，最小为0" autocomplete="off">
            <span class="info">&nbsp;难&nbsp;</span><input class="form-control" type="text" needle="needle" name="args[papersetting][questype][DXT][hardnumber]" value="10" size="1" datatype="number" msg="您需要填写难题的数量，最小为0" autocomplete="off">
        </div>
    </div>

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('单个题目分数')}:</label>
        <div class="col-xs-6 col-sm-9">
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('单选')}:</label>
                <div class="col-xs-6 col-sm-4">
                    <input id="c-score_1" data-rule="required" class="form-control" name="row[score][1]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('多选')}:</label>
                <div class="col-xs-6 col-sm-4">
                    <input id="c-score_2" data-rule="required" class="form-control" name="row[score][2]" type="number" value="0">
                </div>
            </div>
            <div class="form-group">
                <label class="control-label col-xs-12 col-sm-2">{:__('判断')}:</label>
                <div class="col-xs-6 col-sm-4">
                    <input id="c-score_3" data-rule="required" class="form-control" name="row[score][3]" type="number" value="0">
                </div>
            </div>
        </div>
    </div>

    <div class="form-group form-time">
        <label class="control-label col-xs-12 col-sm-2">{:__('开始时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-start_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[start_date]" type="text">
        </div>
    </div>

    <div class="form-group form-time">
        <label class="control-label col-xs-12 col-sm-2">{:__('结束时间')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-end_date" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[end_date]" type="text">
        </div>
    </div>-->

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('排序')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-sort" data-rule="required" class="form-control" name="row[sort]" type="number" value="0">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">是否开启:</label>
        <div class="col-xs-12 col-sm-8">
            {:build_radios('row[status]', ['1'=>__('Yes'), '0'=>__('No')])}
        </div>
    </div>

    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
